﻿using Common.Communication;
using Common.Tool.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;

namespace Common.Device.Interfaces
{
    public interface IDevice
    {
        /// <summary>
        /// 日志文档
        /// </summary>
        RichDocument document { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 是否是连接的
        /// </summary>
        bool IsConnected { get; }
        /// <summary>
        /// 打开连接
        /// </summary>
        /// <returns></returns>
        Result Open();
        /// <summary>
        /// 关闭连接
        /// </summary>
        /// <returns></returns>
        Result Close();

    }
}
